#include "TcpServer.hpp"
#include "CommandExec.hpp"
#include <memory>

int main()
{
    Command cmd;
    //将任务传递给下层执行
    std::unique_ptr<TcpServer> tsvr = std::make_unique<TcpServer>([&cmd](std::string cmdstr){return cmd.Execute(cmdstr);});
    tsvr->InitServer();

    tsvr->Start();
    return 0;
}